<!-- 分页模块-->
<div style="text-align: center;margin-bottom:50px;">
    <ul class="pagination">
    	<#if page.pageNum == 1>
		<li>
            <a href="#" aria-label="Previous">
                <span aria-hidden="true">&laquo;</span>
            </a>
        </li>
		<#else>
		<li>
            <a href="javascript:void(0);" onclick="gotoPage(${page.pageNum-1});" aria-label="Previous">
                <span aria-hidden="true">&laquo;</span>
            </a>
        </li>
		</#if>
		<#if page.pages = 0>
			<li  class="active"><a href="">1</a></li>
		<#elseif page.pages lte 5>
			<#list 1..page.pages as i>
				<li  <#if page.pageNum==i>class="active"</#if>><a href="javascript:gotoPage(#{i});">#{i}</a></li>
			</#list>
		<#elseif page.pageNum lte 3>
			<#list 1..5 as i>
				<li  <#if page.pageNum==i>class="active"</#if>><a href="javascript:gotoPage(#{i});">#{i}</a></li>
			</#list>
		<#elseif page.pageNum gte page.pages-2>
			<#list page.pages-4..page.pages as i>
				<li  <#if page.pageNum==i>class="active"</#if>><a href="javascript:gotoPage(#{i});">#{i}</a></li>
			</#list>
		<#else>
			<#list page.pageNum-2..page.pageNum+2 as i>
				<li  <#if page.pageNum==i>class="active"</#if>><a href="javascript:gotoPage(#{i});">#{i}</a></li>
			</#list>
		</#if>
		
        <#if page.pageNum == page.pages>
		<li>
            <a href="#" aria-label="Next">
                <span aria-hidden="true">&raquo;</span>
            </a>
        </li>
		<#else>
		<li>
            <a href="javascript:void(0);" onclick="gotoPage(${page.pageNum+1});" aria-label="Next">
                <span aria-hidden="true">&raquo;</span>
            </a>
        </li>
		</#if>
    </ul>
</div>
<script type="text/JavaScript">
	function gotoPage(pageNo){
		$('#pageNum').val(pageNo);
		searchData();
	}
</script>
<!--分页结束-->